$(function () {
    $("#castVoteDisable").hide();
    if($("#customerSexValue").val() == '1'){$("#customerSex").html('男')}else {$("#customerSex").html('女')}
    if($("#nationalityValue").val() == '1'){$("#nationality").html('中国')}else {$("#nationality").html('美国')}
    if($("#nationValue").val() == '1'){$("#nation").html('汉族')}else {$("#nation").html('傣族')}
    if($("#insuranceStateValue").val() == '1'){$("#insuranceState").html('职工医保')}else {$("#insuranceState").html('社会医保')}
    if($("#medicalTypeValue").val() == '1'){$("#medicalType").html('初诊')}else {$("#medicalType").html('复诊')}
    if($("#maritalStatusValue").val() == '1'){$("#maritalStatus").html('已婚')}else if($("#maritalStatusValue").val() == '2'){$("#maritalStatus").html('未婚')}else if($("#maritalStatusValue").val() == '3'){$("#maritalStatus").html('离异')}else if($("#maritalStatusValue").val() == '4'){$("#maritalStatus").html('离异再婚')}
    for(var i=0 ; i<$(".auxiliary").length ; i++){
        if ($('.auxiliary').eq(i).children().length == 0) {
            $('.auxiliary').eq(i).parent('.imageBox').hide();
        }
    }
    var customerName = $("#customerNameValue").val();
    var char = customerName.substr(0, 1);
    for(var e=0 ; e<customerName.length-1 ; e++){
        char += "*";
    }
    $("#customerName").html(char)
});